package cn.tedu._07springaop.egaop01;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class OrderServiceTest {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu._07springaop");
        OrderServiceImpl orderService = context.getBean(OrderServiceImpl.class);
        orderService.placeOrder(-5);

    }
}
